#pragma once
#include "resource.h"
#include "afxcmn.h"
#include "SecurityProjectDlg.h"
#include "Account.h"


// CAccountManagementDlg dialog

class CAccountManagementDlg : public CDialog
{
	DECLARE_DYNAMIC(CAccountManagementDlg)

public:
	CAccountManagementDlg(CWnd* pParent = NULL);   // standard constructor
	CAccountManagementDlg( CSecurityProjectDlg* secDlg);
	virtual ~CAccountManagementDlg();

// Dialog Data
	enum { IDD = IDD_DIALOG_MANAGE };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual BOOL OnInitDialog();
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedCancel();
	afx_msg void OnNMClickListAcc(NMHDR *pNMHDR, LRESULT *pResult);
	CListCtrl m_lstAcc;
	CSecurityProjectDlg* secDlg;
	void AddAccountToList(CString username, CString description);
	void InitListControl();
	void LoadAccountList();
	Account* accClick;

	afx_msg void OnBnClickedOk();
	afx_msg void OnBnClickedButtonManageCreate();
	afx_msg void OnBnClickedButtonManageCreate2();
	afx_msg void OnBnClickedButtonManageUpdate();
	afx_msg void OnBnClickedButtonManageDel();
};
